package com.bh.test.mapper;

import com.bh.mapper.MenuMapper;
import com.bh.mapper.RoleMapper;
import com.bh.pojo.entry.Menu;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class MenuText {
    ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring.xml");
    MenuMapper mapper = ac.getBean(MenuMapper.class);

    @Test
    public void  aaa(){
        List<Menu> byId = mapper.findById(2);
        System.out.println(byId);
    }
}
